<template>
  <div>
    <h1>用户界面</h1>
    <p>2222233333</p>
    <p>{{userId}}</p>
  </div>
</template>

<script>
export default {
  name: "user",
  computed: {
    userId() {
      return this.$route.params.userId;
    }
  },
  created() {
    document.title = "用户页面";
    console.log("用户页面创建");
  },
  destory() {
    console.log("用户页面销毁");
  }
};
</script>

<style>
</style>